
import java.util.*;



public class Jisuan {
    double numberA;
    double numberB;

    public Jisuan(double numberA, double numberB) {
        this.numberA = numberA;
        this.numberB = numberB;
    }
    public double getResult()
    {
        return 1;
    }

}
class person
{

}
class ChengFa extends Jisuan{



        public ChengFa(double numberA, double numberB) {
        super(numberA, numberB);
    }
    public double getResult()
    {
        return (this.numberA*this.numberB);
    }
}
class  ChuFa extends Jisuan{
    public ChuFa(double numberA, double numberB) {
        super(numberA, numberB);
    }
    public double getResult()
    {
        return (this.numberA/this.numberB);
    }

}

class JiaFa extends Jisuan{
    public JiaFa(double numberA, double numberB) {
        super(numberA, numberB);
    }
    public double getResult()
    {
        return (this.numberA+this.numberB);
    }

}
class JianFa extends Jisuan {
    public JianFa(double numberA, double numberB) {
        super(numberA, numberB);
    }
    public double getResult()
    {
        return (this.numberA-this.numberB);
    }

}
class JisuanFactory
{

    public static double JisuancreateOpreate(char operate,double a,double c)
    {
        if(operate=='+')
        {
            JiaFa jiafa=new JiaFa(a,c);
            //return new JiaFa(a,c);
            return jiafa.getResult();
        }
        if(operate=='-')
        {
            JianFa  jianfa=new JianFa(a,c);
            return jianfa.getResult();
        }
        if(operate=='*')
        {
            ChengFa chengfa=new ChengFa(a,c);
            return chengfa.getResult();

        }
        else
        {
            ChuFa chufa=new ChuFa(a,c);
            return chufa.getResult();
        }



    }
}
class JiSuanQi
{
    public static void main(String[] args) {
        Scanner b=new Scanner(System.in);
      double a=b.nextDouble();
       double c= b.nextDouble();
        char f=b.next().charAt(0);
        JiSuanQi m=new JiSuanQi();
        double result= JisuanFactory.JisuancreateOpreate(f,a,c);
        System.out.println(result);

    }





}


